package com.coffee.admin.service.supplier.dao;

import com.coffee.admin.api.supplier.query.SupplierBaseDeployQuery;
import com.coffee.admin.service.supplier.bean.SupplierBaseDeploy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierBaseDeployDao {
	public SupplierBaseDeploy findById(Integer id);
	
	public SupplierBaseDeploy findByIdForUpdate(Integer id);
	
	public List<SupplierBaseDeploy> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") SupplierBaseDeployQuery param);

	public List<SupplierBaseDeploy> page(@Param("param") SupplierBaseDeployQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<SupplierBaseDeploy> list(@Param("param") SupplierBaseDeployQuery param);

	public SupplierBaseDeploy findFirst(@Param("param") SupplierBaseDeployQuery param);

	public Integer insert(SupplierBaseDeploy param);

	Integer insertBatch(List<SupplierBaseDeploy> list);

	public void updateById(@Param("param") SupplierBaseDeploy param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}